/**
 * Created by mylxsw on 14-6-17.
 */

var storage = {
  setValue: function(key, value){
      localStorage[key] =  value;
  },
  getValue: function(key, defaults){
      defaults = defaults || '';
      var value = localStorage[key] || defaults;
      return value;
  },
  remove: function(key){
      localStorage.removeItem(key);
  }
};